package com.yq.practice.design.flyweight;

/**
 * @ClassName Client
 * @Description just practice
 * @Author yaoqiang
 * @Date 2021/2/23 9:27
 * @Version 1.0
 */
public class Client {
    public static void main(String[] args) {
        FlyWeightFactory pool=new FlyWeightFactory();
        Web blog = pool.getWeb("blog");
        blog.use(new User("1"));
        Web news = pool.getWeb("news");
        news.use(new User("2"));
        Web blog2 = pool.getWeb("blog");
        blog2.use(new User("3"));
        pool.getCount();

    }
}
